#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int a, b, c, d = 0;
	scanf("%d%d%d%d", &a, &b, &c, &d);
	if (c<=a && d>=b) {
		printf("YES");
	}
	else {
		printf("NO");
	}
	return 0;
}